﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.utils {
    import flash.events.*;

    public class Events {

        public static function handleOneTimeEvent(_arg1:IEventDispatcher, _arg2:Function, _arg3:String):void{
            var callback:Function;
            var dispatcher = _arg1;
            var handler = _arg2;
            var type = _arg3;
            callback = function (_arg1:Event):void{
                dispatcher.removeEventListener(type, callback);
                handler(dispatcher);
            };
            dispatcher.addEventListener(type, callback);
        }

    }
}//package net.wooga.pets.utils 
